package org.dromara.system;
import io.rong.CenterEnum;
import io.rong.RongCloud;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.context.annotation.Bean;

/**
 * 启动程序
 *
 * @author Lion Li
 */

@SpringBootApplication
public class AppApplication {

    String appKey = "mgb7ka1nm293g";
    String appSecret = "CfQb8dJtgCVbE7";


    @Bean
    public RongCloud getRongCloud() {
        RongCloud instance = RongCloud.getInstance(appKey, appSecret, CenterEnum.BJ);
        return instance;
    }

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(AppApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        System.out.println("(♥◠‿◠)ﾉﾞ  RuoYi-Vue-Plus启动成功   ლ(´ڡ`ლ)ﾞ");
    }

}
